package com.hzz.mybatisplusdemo.config.sqlInjector;

/**
 * MybatisPlus自定义SQL方法
 */
public enum GeneralMybatisPlusSqlMethod {

    /**
     * 修改
     */
    UPDATE_ALL_COLUMN_BY_ID("updateAllColumnById", "根据ID更新所有数据", "<script>\nUPDATE %s %s %s %s\n</script>");

    private final String method;
    private final String desc;
    private final String sql;

    GeneralMybatisPlusSqlMethod(String method, String desc, String sql) {
        this.method = method;
        this.desc = desc;
        this.sql = sql;
    }

    public String getMethod() {
        return method;
    }

    public String getDesc() {
        return desc;
    }

    public String getSql() {
        return sql;
    }
}
